<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			div{
				width: 100px;
				height: 100px;
				background-color: red;
				transition: 1s;
				margin-bottom: 20px;
			}
			
			.p1:hover{
				width: 300px;
				transition: width 1s;
			}
			/*多项改变*/
			.p2:hover{
				width: 300px;
				height: 300px;
				transition: width 1s,height 1s,transform 1s;
				transform: rotate(180deg);
			}
			/*过渡属性*/
			.p3:hover{
				width: 300px;
				transition-property: width;
				transition-duration: 1s;
				transition-timing-function: linear;
				transition-delay: 2s;
			}
			.p4:hover{
				width: 300px;
				transition: width 1s linear 2s;
			}
		</style>
	</head>
	<body>
		<div class="p1"></div>
		<!--多项改变-->
		<div class="p2"></div>
		<!--过渡属性-->
		<div class="p3"></div>
		<div class="p4"></div>
	</body>
</html>